﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DiarySocial.Models
{
    public class ModelFactory
    {
        #region Comment Factory
        public static Comment CreateComment(int authorId, int diaryId, string commentText)
        {
            return new Comment()
            {
                AuthorId = authorId,
                DiaryId = diaryId,
                IsApproved = true,
                Text = commentText,
                ParentId = 0,
                Created = DateTime.Now,
                Modified = DateTime.Now as DateTime?
            };
        }
        #endregion
    }
}